import React from 'react';
import { Button, DatePicker, Space, Table } from 'antd';
import { useMount } from 'ahooks';
import { StepBackwardOutlined } from '@ant-design/icons';
import service from '../../api/demo';

const Home = () => {
    useMount(() => {
        // service.getMaterialList({
        //     pageSize: 10,
        //     pageNum: 1,
        // }).then(res => {
        //     console.log(res);
        // });
    });
    return (
        <>
            <Space>
                Home
                <Button>按钮</Button>
                <Button type="primary">Primary Button</Button>
                <DatePicker />
                <StepBackwardOutlined />
            </Space>
            <Table />
        </>
    );
};

export default Home;
